//
//  NetworkReachabilityMonitor.h
//  EverBoxApp
//
//  Created by fanglin liu on 12-3-8.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import "NetworkReachabilityMonitorProtocol.h"

@interface NetworkReachabilityMonitor : NSObject
{
@private
    SCNetworkReachabilityRef networkReachabilityRef_;
    NSArray* monitoringModes_;
    NSMutableArray* observers_;
    NSString* checkReachabilityHostname_;
}

@property (nonatomic, retain, readwrite) NSArray* monitoringModes;
@property (nonatomic, retain, readwrite) NSString* checkReachabilityHostname;

+ (NetworkReachabilityMonitor*) sharedNetworkReReachabilityMonitor;


- (void) startMonitor;
- (void) stopMonitor;

- (void) addObserver:(id<NetworkReachabilityMonitorProtocol>) anObserver;
- (void) removeObserver:(id<NetworkReachabilityMonitorProtocol>) anObserver;

@end
